package com.umakr.demo.service;

import com.umakr.demo.mapper.NianjiBanjiMapper;
import com.umakr.demo.model.Banji;
import com.umakr.demo.model.NianjiBanji;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by yangliu on 2017/8/22.
 */
@Service
public class NianjiBanjiService {
   @Autowired
    NianjiBanjiMapper nianjiBanjiMapper;

   public List<Banji> nianjiShowBanji(Long nid){
        return nianjiBanjiMapper.nianjiShowBanji(nid);
    }

    public void addAll(NianjiBanji nianjiBanji){
       nianjiBanjiMapper.addAll(nianjiBanji);
    }

    public void deleteAll(Long nid){
        nianjiBanjiMapper.deleteAll(nid);
    }





}
